//package com.example.webproject.entity;
//
//import com.fasterxml.jackson.annotation.JsonBackReference;
//import com.fasterxml.jackson.annotation.JsonIgnore;
//import lombok.Data;
//
//import javax.persistence.*;
//import java.util.ArrayList;
//import java.util.List;
//
///**
// * @author hhs
// * @Description
// * @date 2022/12/6 14:03
// */
//@Data
//@Table(name = "t_option")
//@Entity
//public class Option extends BaseEntity {
//    /**
//     * 选项内容
//     */
//    private String content;
//    /**
//     * 选项标签
//     */
//    private String label;
//    /**
//     * 是否正确
//     */
//    private boolean isAnswer;
////    @JsonBackReference
//    @ManyToOne
//    private Question question;
//
////    @JsonIgnore
//    @ManyToMany(mappedBy = "options")
//    private List<Result> results=new ArrayList<>();
//
//    @JsonBackReference
//    public Question getQuestion() {
//        return question;
//    }
//    @JsonIgnore
//    public List<Result> getResults() {
//        return results;
//    }
//}
